import request from '@/utils/request'

// 查询巡逻任务详情列表
export function listCruiserTaskDetail(query) {
  return request({
    url: '/waitress/CruiserTaskDetail/list',
    method: 'get',
    params: query
  })
}

// 查询巡逻任务详情详细
export function getCruiserTaskDetail(id) {
  return request({
    url: '/waitress/CruiserTaskDetail/' + id,
    method: 'get'
  })
}

// 新增巡逻任务详情
export function addCruiserTaskDetail(data) {
  return request({
    url: '/waitress/CruiserTaskDetail',
    method: 'post',
    data: data
  })
}

// 修改巡逻任务详情
export function updateCruiserTaskDetail(data) {
  return request({
    url: '/waitress/CruiserTaskDetail',
    method: 'put',
    data: data
  })
}

// 删除巡逻任务详情
export function delCruiserTaskDetail(id) {
  return request({
    url: '/waitress/CruiserTaskDetail/' + id,
    method: 'delete'
  })
}

// 导出巡逻任务详情
export function exportCruiserTaskDetail(query) {
  return request({
    url: '/waitress/CruiserTaskDetail/export',
    method: 'get',
    params: query
  })
}